package com.facepp.demo.bean;


import java.util.List;


public class BodyAttr {

    /**
     * {
     * 	"log_id": 7783055380416435166,
     * 	"person_num": 1,
     * 	"person_info": [{
     * 		"attributes": {
     * 			"lower_color": {
     * 				"score": 0.4863463044166565,
     * 				"name": "黑"
     *                        },
     * 			"upper_color": {
     * 				"score": 0.5242728590965271,
     * 				"name": "红"
     *            }        * 		},
     * 		"location": {
     * 			"score": 0.9999798536300659,
     * 			"top": 12,
     * 			"left": 155,
     * 			"width": 219,
     * 			"height": 595
     *        }
     *    }]
     * }
     */
    private long log_id;
    private Integer person_num;
    private List<PersonInfo> person_info;

    public long getLog_id() {
        return log_id;
    }

    public void setLog_id(long log_id) {
        this.log_id = log_id;
    }

    public Integer getPerson_num() {
        return person_num;
    }

    public void setPerson_num(Integer person_num) {
        this.person_num = person_num;
    }

    public List<PersonInfo> getPerson_info() {
        return person_info;
    }

    public void setPerson_info(List<PersonInfo> person_info) {
        this.person_info = person_info;
    }


    public class PersonInfo{
        private Attributes attributes;
        private Location location;

        public Attributes getAttributes() {
            return attributes;
        }

        public void setAttributes(Attributes attributes) {
            this.attributes = attributes;
        }

        public Location getLocation() {
            return location;
        }

        public void setLocation(Location location) {
            this.location = location;
        }

        public class Attributes{
            private LowerColor lower_color;
            private UpperColor upper_color;
            private Headwear headwear;


            public LowerColor getLower_color() {
                return lower_color;
            }

            public void setLower_color(LowerColor lower_color) {
                this.lower_color = lower_color;
            }

            public UpperColor getUpper_color() {
                return upper_color;
            }

            public void setUpper_color(UpperColor upper_color) {
                this.upper_color = upper_color;
            }

            public Headwear getHeadwear() {
                return headwear;
            }

            public void setHeadwear(Headwear headwear) {
                this.headwear = headwear;
            }

            /**
             * 下半身颜色
             */
            public class LowerColor{
                private float score;
                private String name;

                public float getScore() {
                    return score;
                }

                public void setScore(float score) {
                    this.score = score;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }

            /**
             * 上半身颜色
             */
            public class UpperColor{
                private float score;
                private String name;

                public float getScore() {
                    return score;
                }

                public void setScore(float score) {
                    this.score = score;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }
            /**
             * 上半身颜色
             */
            public class Headwear{
                private float score;
                private String name;

                public float getScore() {
                    return score;
                }

                public void setScore(float score) {
                    this.score = score;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                @Override
                public String toString() {
                    return "" +
                            //"概率:" + score +
                            "说明:" + name;
                }
            }
        }

        /**
         * 身体位置坐标啥的
         */
        public class Location{
            private float score;
            private float top;
            private float left;
            private float width;
            private float height;

            public float getScore() {
                return score;
            }

            public void setScore(float score) {
                this.score = score;
            }

            public float getTop() {
                return top;
            }

            public void setTop(float top) {
                this.top = top;
            }

            public float getLeft() {
                return left;
            }

            public void setLeft(float left) {
                this.left = left;
            }

            public float getWidth() {
                return width;
            }

            public void setWidth(float width) {
                this.width = width;
            }

            public float getHeight() {
                return height;
            }

            public void setHeight(float height) {
                this.height = height;
            }
        }
    }



}
